#include <string.h>
#include <stdio.h>

int main()
{
  FILE* fp = fopen("log.txt","r");
  if(!fp)
  {
    perror("fopen");
    return 1;
  }
  char buffer[100] = {0};
  int num = fread(buffer,1,sizeof(buffer) - 1,fp);
  buffer[num] = '\0';
  printf("%s",buffer);
  return 0;
}
